package com.liuchuan.template.domain.entity;

import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import java.time.LocalDateTime;

public class Animal {
    //todo

    @Column(nullable = false, length = 50)
    private String name; // 姓名

    @Column(nullable = false, length = 20)
    private String gender; // 性别

    @Column
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime birthDate; // 出生日期

    @Column(nullable = false, unique = true, length = 18)
    private String idNumber; // 身份证号

    @Column(nullable = false, length = 15)
    private String phoneNumber; // 联系方式

    @Column(nullable = false, length = 50)
    private String pwd;

   // write some thing
}
